<?php echo $this->doctype('XHTML1_STRICT');?>
<html>
<head>
    <meta http-equiv="content-type" content = "text/html" charset = "utf-8" />
    <title>Edit | Admin Panel</title>
    <?php echo $this->headLink()->appendStylesheet('/css/back-end/reset.css'); ?> 
    <?php echo $this->headLink()->offsetSetStylesheet(0,'/css/back-end/text.css','all'); ?>
    <?php echo $this->headLink()->offsetSetStylesheet(0,'/css/back-end/grid.css','all'); ?>
    <?php echo $this->headLink()->offsetSetStylesheet(0,'/css/back-end/layout.css','all'); ?>
    <?php echo $this->headLink()->offsetSetStylesheet(0,'/css/back-end/nav.css','all'); ?>
    <?php echo $this->headLink()->offsetSetStylesheet(0,'/css/back-end/style.css','all'); ?>
    <?php echo $this->headLink()->offsetSetStylesheet(0,'/css/back-end/themes/base/jquery.ui.all.css','all'); ?> 	
    <!--[if IE 6]><link rel="stylesheet" type="text/css" href="/css/back-end/ie6.css" media="screen" /><![endif]-->
    <!--[if IE 7]><link rel="stylesheet" type="text/css" href="/css/back-end/ie.css" media="screen" /><![endif]-->    
    <!-- BEGIN: load jquery -->
     <?php echo $this->headScript()->appendFile('/js/back-end/jquery-1.6.4.min.js');?>
    <?php echo $this->headScript()->offsetSetFile(0,'/js/back-end/jquery-ui/jquery.ui.core.min.js','text/javascript');?> 
    <?php echo $this->headScript()->offsetSetFile(0,'/js/back-end/jquery-ui/jquery.ui.widget.min.js','text/javascript');?> 
    <?php echo $this->headScript()->offsetSetFile(0,'/js/back-end/jquery-ui/jquery.ui.accordion.min.js','text/javascript');?> 
    <?php echo $this->headScript()->offsetSetFile(0,'/js/back-end/jquery-ui/jquery.effects.core.min.js','text/javascript');?> 
    <?php echo $this->headScript()->offsetSetFile(0,'/js/back-end/jquery-ui/jquery.effects.slide.min.js','text/javascript');?> 
   	<!-- END: load jquery -->
	<!-- BEGIN: load ckeditor -->
	<?php echo $this->headScript()->offsetSetFile(0,'/js/back-end/ckeditor/ckeditor.js','text/javascript');?>	
	<!-- END: load jquery -->
	<?php echo $this->headScript()->offsetSetFile(0,'/js/setup.js','text/javascript');?> 
    <script type="text/javascript">
        $(document).ready(function () {
       	 setupLeftMenu();
         $('.datatable').dataTable();
			setSidebarHeight();         
        });
    </script>
</head>
<body>
    <div class="container_12">
        <div class="grid_12 header-repeat">
            <div id="branding">
                <div class="floatleft">
                    <img src="/images/back-end/logo.png" alt="Logo" /></div>
                <div class="floatright">
                    <div class="floatleft">
                        <img src="/images/back-end/img-profile.jpg" alt="Profile Pic" /></div>
                    <div class="floatleft marginleft10">
                        <ul class="inline-ul floatleft">
                            <li>Hello Admin</li>
                            <li><a href="#">Config</a></li>
                            <li><a href="#">Logout</a></li>
                        </ul>
                        <br />
                        <span class="small grey">Last Login: 3 hours ago</span>
                    </div>
                </div>
                <div class="clear">
                </div>
            </div>
        </div>
        <div class="clear">
        </div>
        <div class="grid_12">
             <ul class="nav main">
                <li class="ic-dashboard"><a href="<?php echo $this->baseUrl();?>/admin/index"><span> Trang chủ </span></a> </li>
                <li class="ic-form-style"><a href="<?php echo $this->baseUrl();?>/admin/menu"><span> Món ăn </span></a> </li>					
                <li class="ic-charts"><a href="<?php echo $this->baseUrl();?>/admin/revenue"><span> Doanh thu </span></a></li>
                <li class="ic-grid-tables"><a href="<?php echo $this->baseUrl();?>/admin/customer"><span> Khách hàng </span></a></li>
                             

            </ul>
        </div>
        <div class="clear">
        </div>

        <div class="grid_10">
            <div class="box round first">
                <h2> Sửa đổi món ăn </h2>                
                <div class="block">
					<div class = "editUser">
						<?php $item = $this->data; ?>						
						<form action = "/admin/edit" enctype = "multipart/form-data" method = "post">
						<div id = "category">
                        	<div class = "labels"> Mã món </div>
                            <div class = "contentEdit"> <input type = "text" name = "item_id" size = "10" maxlength = "5" value = "<?php echo $item[0]['item_id'];?>" /> </div>
                        	<div class = "labels"> Tên món: </div> 
                            <div class = "contentEdit"> <input type = "text" name = "item_name"  size = "25" maxlength = "40" value = "<?php echo $item[0]['item_name'];?>" /> </div> 
                            <img src = "../images/front-end/<?php echo $item[0]['images']; ?>" width = "180" height = "100" />
                            <div class = "labels"> Loại: </div>
                            <div class = "contentEdit"> 
								<select id="select" name = "kind">
                                    <option value="Món canh">Món canh</option>
                                    <option value="Món chay">Món chay</option>
                                    <option value="Món mặn">Món mặn</option>
									<option value="Món tráng miệng">Món tráng miệng</option>
								</select>
							</div>
							</div>
                            <div class = "labels"> Mô tả: </div>
                            <div class = "contentEdit">  
                            	<textarea cols = "85" id = "description" name = "description"  rows = "8" >
                            		<?php echo $item[0]['description'];?>
                            	</textarea>
                            	<script type="text/javascript"> CKEDITOR.replace('description'); </script>
                            </div>
							<div class = "labels"> Tải ảnh: </div>
                            <div class = "uploads"> 
                            	<input type = "file"  name = "file" size = "30" maxlength = "40" /> 
                            	</div>
							<div class = "labels"> Giá: </div>
                            <div class = "contentEdit"> 
                            	<input type = "text" name = "price" size = "10" maxlength = "10" value = "<?php echo $item[0]['price'];?>" /> VNĐ
                            	</div>
                            <div id = "btEdit">          
                                <input type = "submit" name = "update" value = "Sửa đổi" /> 
                                <input type = "reset" name = "reset" value = "Huỷ bỏ" onClick="window.location.href='menu/';"/>
                            </div>
						</form>						
					</div>                
				</div>
        </div>
        <div class="clear">
        </div>
    </div>
    <div class="clear">
    </div>
    
    
</body>
</html>
